#define _CRT_SECURE_NO_WARNINGS 1
#include "Heap.h"

void HPTest()
{
	HP hp;
	HeapInit(&hp);
	HeapPush(&hp, 8);
	HeapPush(&hp, 1);
	HeapPush(&hp, 3);
	HeapPush(&hp, 4);
	HeapPush(&hp, 9);
	HeapPush(&hp, 7);
	HeapPush(&hp, 6);
	HeapPush(&hp, 0);
	HeapPush(&hp, 2);
	HeapPush(&hp, 5);

	while (!HeapEmpty(&hp))
	{
		printf("%d ", HeapTop(&hp));
		HeapPop(&hp);
	}
}

int main()
{
	HPTest();
	return 0;
}